1. From Hard Constraints to Soft Penalties
Consider a standard problem: minimize $f_0(x)$ subject to $f_i(x) \le 0$ and $h_i(x) = 0$. A "hard" constraint is equivalent to an indicator function:
$$I_-(u) = \begin{cases} 0 & u \leq 0 \\ \infty & u > 0 \end{cases}$$
The Lagrangian construction replaces this infinite jump with a linear penalty. We augment the objective with a weighted sum of the constraint functions:
$$L(x, \lambda, \nu) = f_0(x) + \sum_{i=1}^m \lambda_i f_i(x) + \sum_{i=1}^p \nu_i h_i(x)$$
Here, $\lambda_i$ is the Lagrange multiplier. It acts as a "soft" penalty scaling the impact of the $i$-th inequality. Crucially, we do not assume convexity yet; this framework is universal.
We define the Lagrange dual function $g(\lambda, \nu)$ as the infimum of the Lagrangian over $x$. A vital property is the Lower Bound Property: for any $\lambda \succeq 0$, $g(\lambda, \nu) \le p^*$. This allows us to bound the optimal value of problems that might otherwise be impossible to solve directly.
2. Case Study: Hybrid Vehicle Control
Imagine a vehicle balancing fuel consumption and battery life. The constraints are physical: power demand must be met at every moment.
- Power Balance: $P_{\text{req}}(t) = p_{\text{eng}}(t) + p_{\text{mg}}(t) - p_{\text{br}}(t)$
- Battery Dynamics: $E(t+1) = E(t) - p_{\text{mg}}(t) - \eta |p_{\text{mg}}(t)|$
- Objective: Minimize $F_{\text{total}} = \sum_{t=1}^{T} F(p_{\text{eng}}(t))$
By applying the Lagrangian framework, battery capacity constraints are converted into shadow prices. The controller decides whether to burn fuel or use battery based on the current "cost" of energy (the multiplier) versus the fuel cost.